<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>nslookup</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script type=text/javascript>
        var $SCRIPT_ROOT = {{request.script_root | tojson | safe}};
    </script>
    <script type=text/javascript>
        $(function () {
            $('#but').bind('click', function () {
                $.get($SCRIPT_ROOT + '/shell_nslookup', {
                    domain: $('#domain').val()
                }, function (data) {
                    $("#result").text(data);
                });
                return false;
            });
        });
    </script>
</head>
<body>
<h1>nslookup</h1>
domain:
<input id="domain">
<button id="but">执行</button>
<br>
<pre>
<div id="result"></div>
</pre>
</body>
</html>